/* 
 * File:   in_repository_entity.hpp
 * Author: jolo
 *
 * Created on 11. Oktober 2011, 00:22
 */

#ifndef MODEL_IN_REPOSITORY_ENTITY_HPP
#define	MODEL_IN_REPOSITORY_ENTITY_HPP

#include "entity.hpp"

namespace model
{
    class repository;

    class in_repository_entity: public entity
    {
    public:
        in_repository_entity(repository* r);
        virtual ~in_repository_entity();
        
        virtual const string to_string() const;
        repository* get_repository() const { return r_; }
        
    private:
        friend class boost::serialization::access;

        template<class Archive>
        void serialize(Archive & ar, const unsigned int version)
        {
            (void) version;
            ar & boost::serialization::base_object<entity > (*this);
            ar & r_;
        }
        repository* r_;
    };

}

#endif	/* IN_REPOSITORY_ENTITY_HPP */

